// Shape.cpp: implementation of the CShape class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "8085.h"
#include "Shape.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CShape::CShape()
{
    Init();
}

CShape::~CShape()
{

}

int CShape::Draw(CDC *pDC)
{
    return GetVirtualLength();
}

void CShape::SetVirtualLength(int len)
{
	m_nVirtualLength = len;
}

void CShape::SetRealLength(int len)
{
	m_nRealLength = len;
}

void CShape::Init()
{
	SetVirtualLength(0);
	SetRealLength(0);
    SetBorderColour(RGB(0,0,0));
    SetFillColour(RGB(0,128,0));
}

int CShape::GetVirtualLength()
{
    return m_nVirtualLength;
}

void CShape::SetBorderColour(COLORREF c)
{
    m_BorderColour = c;
}

void CShape::SetFillColour(COLORREF c)
{
    m_FillColour = c;
}

int CShape::GetRealHeight()
{
    return m_nRealHeight;
}

void CShape::SetRealHeight(int len)
{
    m_nRealHeight = len;
}

int CShape::GetVirtualHeight()
{
    return m_nVirtualHeight;
}

